package io.renren.modules.lanling.dao;

import io.renren.modules.lanling.entity.StuSubEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考试中间表
 *
 * @author LANLING
 * @email lanling@gmail.com
 * @date 2018-10-24 10:40:05
 */
public interface StuSubDao extends BaseMapper<StuSubEntity> {
    List<Object> getStudentSubjectIdList(@Param("userId") Long userId);

    /**
     * @param studentId
     */
    void deleteByUserId(@Param("studentId") long studentId);

    void deleteBySubjectId(@Param("subjectId") int subjectId);
}
